{{include file = "layouts/header.tpl"}}
<div class="container mt20">
	<div class="wrapper">
{{include file = "layouts/crumb.tpl"}}
		<div id="texebox" class="mt15">
			{{if $postelement != null and $postelement != "" }} 
			<div class="title titlet-bt">
				<h1>{{$postelement->post_title}}</h1>
			</div>
			<div class="post-meta-top mt15">
				<span class="posts">{{$postelement->username}}</span> <span class=" time">{{$postelement->post_date}}</span>
				<span class="preview" id="clicknumspan"><font>{{$postelement->click_count}}次</font></span> <span
					class="map">广州</span>
			</div>
			<div class="fmt mt20">
				{{$postelement->post_content}}
			</div>
			<div class="texttag">
				{{foreach $posttags as $tag}}
						<a href='{{$tag.url}}'>{{$tag.name}}</a>
				{{/foreach}}
<!-- 				 <a href="#">世界杯</a> <a href="#">俄罗斯</a> -->
			</div>
			<div class="share mt20">
                <div class="jiathis_style_32x32">
				<span class="zan"><a  href="javascript:void(0)" id="zanyixiabtn">赞一下<font title="已赞次数">已赞<b id="agreecount">{{$postelement->agree_count}}</b>次</font></a></span>

                <!-- JiaThis Button BEGIN -->

                    <a class="jiathis_button_qzone"></a>
                    <a class="jiathis_button_tsina"></a>
                    <a class="jiathis_button_tqq"></a>
                    <a class="jiathis_button_weixin"></a>
                    <a class="jiathis_button_renren"></a>
                    <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                    <a class="jiathis_counter_style"></a>
                </div>
			</div>
			<div class="page-n-p mt20">
				<div class="f_l text-prev">
					{{if $pre_post != null and $pre_post != "" }} 
						<span>上一篇</span> <a href="{{$pre_post.url}}"><h3>{{$pre_post.name}}</h3></a>
					{{/if}}
				
				</div>
				<div class="f_r text-next">
					{{if $nxt_post != null and $nxt_post != "" }} 
						<span>下一篇</span> <a href="{{$nxt_post.url}}"><h3>{{$nxt_post.name}}</h3></a>
					{{/if}}
				</div>
			</div>
			{{/if}}
			<div class="textcontent-ad mt20" id='postcontent'>
<!-- 				<img src="{{$smarty.const.WEBSITE_URL}}public/photo/726x30-AD.gif" /> -->
			</div>
			<div class="comments">
				<div class="title titlet-h mt15">参与讨论</div>
				<div class="commentslist mt15">
					<ul id="postcomentsul">
					{{foreach $postComents as $coment}}
						<li>
							<div class="textcommen">
								<div>
									<img
										src="{{$smarty.const.WEBSITE_URL}}{{$coment['user_photo']}}"
										width="79" height="79" /> <span>{{$coment['username']}}</span>
									<time>{{$coment['comment_date']}}</time>
									<p>{{$coment['comment_content']}}</p>
									<a href="#postMessage" class="f_r">回复</a>
								</div>
							</div>
						</li>
						{{/foreach}}
						<li>
							<form>
								<textarea id="postMessage"></textarea>
								<input type="button" id="post_comments" class="button but-c-hei mt15" value="评论">
							</form>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div class="rightsub">
			<div class="gameinfo">
				<div class="duiming">
					<font color="#e40000">利物浦</font> VS <font color="#004088">富勒姆</font>
					<time>比赛时间 : 11-15 05:40</time>
				</div>
				<div class="shenglv">
					<a href="#" class="sheng border-r"> <font
						class="shenglv-iocn shenglv-color-s">胜</font> 2.56
					</a> <a href="#" class="ping  border-r"> <font
						class="shenglv-iocn shenglv-color-p">平</font> 2.56
					</a> <a href="#" class="fu"> <font
						class="shenglv-iocn shenglv-color-f">负</font> 2.56
					</a>
				</div>
				<div class="touzhu">
					<form>
						投注金额<input type="text" class="text-inp" />元<input type="button"
							class="but-c-hei button f_r" value="投注" />
					</form>
				</div>
			</div>

			<div class="subad mt15" id="rightContent">
<!-- 				<a href="#"><img src="{{$smarty.const.WEBSITE_URL}}public/photo/300x300-AD.gif" /></a> -->
			</div>
            {{include file = "layouts/hottag.tpl"}}
            {{include file = "layouts/email_sub.tpl"}}
		</div>
	</div>
 
</div>
<script language="JavaScript">
         var weburl = '{{$smarty.const.WEBSITE_URL}}';
         var parms = {'id':{{$postid}}};
 </script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>

{{include file = "layouts/footer.tpl"}}
